﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NCrawler.Extensions;

namespace ZCrawler
{
    public class ZCrawlDataAbsoluteUrlProcessor : ZCrawlDataProcessor
    {
        public string originalUrl { get; set; }
        public override string Process(string str)
        {
            return new Uri(new Uri(originalUrl), str).AbsoluteUri;
        }
        public override string Description
        {
            get
            {
                return "AbsoluteUrl with root : {0}".FormatWith(originalUrl);
            }
            set
            {
                base.Description = value;
            }
        }
    }
}
